<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org">
<head>
<title>首页</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
	<div class="container" id="content">
		<section class="content-header">
			<h1>
				<i class="fa fa-file"></i> <strong>项目合同审批</strong>
			</h1>
			<ol class="breadcrumb">
				<li><a href="#"><i class="fa fa-home "></i>Home</a></li>
				<li>合同管理</li>
				<li class="active">项目合同审批</li>
			</ol>
		</section>
		<!-- Main content -->
		<section class="content">
			<div class="box box-info">
				<div class="box-header with-border">
					<i class="fa fa-th-list"></i>
					<h4 class="box-title">项目合同信息</h4>
				</div>
				<div class="row-fluid">
					<div class="span12">
						<div id="container" class="widget-title">
							<ul class="nav nav-tabs" id="myTabs">
								<li><a data-toggle="tab" href="#tab1"><span>合同信息</span></a></li>
								<li><a data-toggle="tab" href="#tab2"><span>细 目</span></a></li>
							</ul>
						</div>
						<div class="pre-scrollable1">
							<div class="widget-content tab-content">

								<div id="tab1" class="active tab-pane">
									<form id="contractAtrrForm" class="widget-box">
										<input class="form-control" type="hidden" id="contractId"
											name="contractId" th:value="${contract.id}" /> <input
											class="form-control" type="hidden" id="createTime"
											name="createTime" th:value="${contract.createTime}" /> <input
											class="form-control" type="hidden" id="userId" name="userId"
											th:value="${userId}" />
											<input class="form-control" type="hidden" id="cstate" name="cstate" th:value="${contract.cstate}" />
											<input class="form-control" type="hidden" id="state" name="state" th:value="${contract.state}" />
										<div class="widget-content nopadding">
											<table class="table table-bordered">
												<tbody>
													<tr class="odd gradeX">
														<td width="8%" align="center"
															style="vertical-align: middle">供方合同号</td>
														<td width="17%">
															<div class="col-md-11">
																<input class="form-control" type="text"
																	id="supplierCode" name="supplierCode"
																	th:value="${contract.supplierCode}"
																	datatype="*,*1-100,t" nullmsg="请输入供方合同号" />
															</div>
															<div class="col-md-1">
																<span style="color: #F00">*</span>
															</div>
														</td>
														<td width="8%" align="center"
															style="vertical-align: middle">需方合同号</td>
														<td width="17%">
															<div class="col-md-11">
																<input class="form-control" type="text"
																	id="demanderCode" name="demanderCode"
																	th:value="${contract.demanderCode}"  />
															</div>
														</td>
														<td width="8%" align="center"
															style="vertical-align: middle">总价(元)</td>
														<td width="17%">
															<div class="col-md-11">
																<input class="form-control" type="text" id="totalSum"
																	name="totalSum" th:value="${#numbers.formatDecimal(contract.totalSum,1,2)}"
																	onkeyup="clearNoNum(this)" datatype="*,n"
																	nullmsg="请输入合同总价" errormsg="请填写数字" />
															</div>
															<div class="col-md-1">
																<span style="color: #F00">*</span>
															</div>
														</td>
													</tr>
													<tr class="even gradeC">
														<td width="8%" align="center"
															style="vertical-align: middle">签订日期</td>
														<td width="17%">
															<div class="col-md-11">
																<input class="form-control" type="date" id="signedDate"
																	name="signedDate"
																	th:value="${#dates.format(contract.signedDate,'yyyy-MM-dd')}"
																	datatype="*,*1-100,t" nullmsg="请输入签订日期" />
															</div>
															<div class="col-md-1">
																<span style="color: #F00">*</span>
															</div>
														</td>
														<td width="8%" align="center"
															style="vertical-align: middle">排产日期</td>
														<td width="17%">
															<div class="col-md-11">
																<input class="form-control" type="date"
																	id="scheduleDate" name="scheduleDate"
																	th:value="${#dates.format(contract.scheduleDate,'yyyy-MM-dd')}"
																	datatype="*,*1-100,t" nullmsg="请输入排产日期" />
															</div>
															<div class="col-md-1">
																<span style="color: #F00">*</span>
															</div>
														</td>
														<td width="8%" align="center"
															style="vertical-align: middle">交货日期</td>
														<td width="17%">
															<div class="col-md-11">
																<input class="form-control" type="date" id="giveOutDate"
																	name="giveOutDate"
																	th:value="${#dates.format(contract.giveOutDate,'yyyy-MM-dd')}"
																	datatype="*,*1-100,t" nullmsg="请输入交货日期" />
															</div>
															<div class="col-md-1">
																<span style="color: #F00">*</span>
															</div>
														</td>
													</tr>
													<tr>
														<td width="8%" align="center"
															style="vertical-align: middle">货物到站</td>
														<td width="17%">
															<div class="col-md-11">
																<input class="form-control" type="text" id="stop"
																	name="stop" th:value="${contract.stop}" datatype="t" />
															</div>
															<div class="col-md-1">
																<span style="color: #F00"></span>
															</div>
														</td>
														<td width="8%" align="center"
															style="vertical-align: middle">运费支付(元)</td>
														<td width="17%">
															<div class="col-md-11">
																<input class="form-control" type="text"
																	id="freightCharge" name="freightCharge"
																	th:value="${#numbers.formatDecimal(contract.freightCharge,1,2)}"
																	onkeyup="clearNoNum(this)" datatype="n"
																	errormsg="请填写数字" />
															</div>
															<div class="col-md-1">
																<span style="color: #F00"></span>
															</div>
														</td>
														<td></td>
														<td></td>
													</tr>
													<tr>
														<td width="8%" align="center"
															style="vertical-align: middle">项目名称</td>
														<td colspan="3">
															<div class="col-md-11">
																<input class="form-control" type="text" id="projectName"
																	name="projectName" th:value="${contract.projectName}"
																	datatype="*,*1-100,t" nullmsg="请输入项目名称" />
															</div>
															<div class="col-md-1">
																<span style="color: #F00">*</span>
															</div>
														</td>
														<td></td>
														<td></td>
													</tr>
													<tr>
														<td width="8%" align="center"
															style="vertical-align: middle">付款方式</td>
														<td colspan="7">
															<div class="col-md-11">
																<textarea class="form-control" style="width: 100%"
																	id="payType" name="payType"
																	th:text="${contract.payType}" rows="3"
																	datatype="*,*1-1000" nullmsg="请输入付款方式"></textarea>
															</div>
															<div class="col-md-1">
																<span style="color: #F00">*</span>
															</div>
														</td>
													</tr>
													<tr>
														<td width="8%" align="center"
															style="vertical-align: middle">质保期限</td>
														<td colspan="7">
															<div class="col-md-11">
																<textarea class="form-control" style="width: 100%"
																	id="guaranteePeriod" name="guaranteePeriod"
																	th:text="${contract.guaranteePeriod}" rows="2"
																	datatype="*,*1-1000" nullmsg="请输入质保期限"></textarea>
															</div>
															<div class="col-md-1">
																<span style="color: #F00">*</span>
															</div>
														</td>
													</tr>
													<tr>
														<td width="8%" align="center"
															style="vertical-align: middle">违约责任</td>
														<td colspan="7">
															<div class="col-md-11">
																<textarea class="form-control" style="width: 100%"
																	id="breakDuty" name="breakDuty"
																	th:text="${contract.breakDuty}" rows="2"
																	datatype="*,*1-1000" nullmsg="请输入违约责任"></textarea>
															</div>
															<div class="col-md-1">
																<span style="color: #F00">*</span>
															</div>
														</td>
													</tr>
												</tbody>
											</table>
										</div>

										<table class="table table-bordered">
											<tbody>
												<tr class="odd gradeX">
													<td width="10.5%" align="center"
														style="vertical-align: middle">合同类型</td>
													<td width="23%">
														<div class="col-md-11">
															<input class="form-control" type="text" id="contractType"
																name="contractType" value="项目合同" readonly="readonly" />
														</div>
														<div class="col-md-1">
															<span style="color: #F00"></span>
														</div>
													</td>
													<td colspan="4"></td>
												</tr>
											</tbody>
										</table>

										<div>
											<h4>
												<strong>订货单位信息</strong>
												<button type="button" class="btn btn-info" id="queryCustomerPayInfo">引入附加开票信息</button>
											</h4>
										</div>
										<table class="table table-bordered">
											<tbody>
												<tr class="odd gradeX">
													<td width="8%" align="center"
														style="vertical-align: middle">订货单位</td>
													<td width="17%">
														<div class="col-sd-4 input-group"
															style="margin-left: 8px;">
															<input type="hidden" name="customerId" id="customerId"  th:value="${contract.customerId}"/>
															<input class="form-control" type="text" id="orderUnit"
																name="orderUnit" th:value="${contract.orderUnit}"
																datatype="*,*1-100,t" nullmsg="请输入订货单位" readonly="readonly"/> <span
																class="input-group-btn">
																<button type="button" id="queryCustomer"
																	class="btn btn-info" title="引入订货单位信息">
																	<i class="fa fa-search"></i>
																</button>
															</span>
														</div>
													</td>
													<td width="8%" align="center"
														style="vertical-align: middle">订货代表</td>
													<td width="17%">
														<div class="col-md-11">
															<input class="form-control" type="text"
																id="orderDelegate" name="orderDelegate"
																th:value="${contract.orderDelegate}" />
														</div>
														<div class="col-md-1">
															<span style="color: #F00"></span>
														</div>
													</td>
													<td width="8%" align="center"
														style="vertical-align: middle">订货电话</td>
													<td width="17%">
														<div class="col-md-11">
															<input class="form-control" type="text" id="orderPhone"
																name="orderPhone" th:value="${contract.orderPhone}" />
														</div>
														<div class="col-md-1">
															<span style="color: #F00"></span>
														</div>
													</td>
												</tr>
												<tr class="odd gradeX">
													<td width="8%" align="center"
														style="vertical-align: middle">订货邮编</td>
													<td width="17%">
														<div class="col-md-11">
															<input class="form-control" type="text" id="orderZip"
																name="orderZip" th:value="${contract.orderZip}"
																onkeyup="clearNoInteger(this)" dataType="p" />
														</div>
														<div class="col-md-1">
															<span style="color: #F00"></span>
														</div>
													</td>
													<td width="8%" align="center"
														style="vertical-align: middle">订货片区</td>
													<td width="17%">
														<div class="col-md-11">
															<select class="form-control" id="orderArea"
																name="orderArea" datatype="*,*1-100,t" nullmsg="请选择订货片区">
																<option></option>
																<option th:each="orderArea:${orderAreas}"
																	th:text="${orderArea}"
																	th:selected="${orderArea.equals(contract.orderArea)}"></option>
															</select>
														</div>
														<div class="col-md-1">
															<span style="color: #F00">*</span>
														</div>
													</td>
													<td width="8%" align="center"
														style="vertical-align: middle">行业信息</td>
													<td width="17%">
														<div class="col-md-11">
															<select class="form-control" id="industryInfo"
																name="industryInfo" datatype="*,*1-100,t"
																nullmsg="请选择行业信息">
																<option></option>
																<option th:each="industryInfo:${industryInfos}"
																	th:text="${industryInfo.title}"
																	th:selected="${industryInfo.title.equals(contract.industryInfo)}"></option>
															</select>
														</div>
														<div class="col-md-1">
															<span style="color: #F00">*</span>
														</div>
													</td>
												</tr>
												<tr class="odd gradeX">
													<td width="8%" align="center"
														style="vertical-align: middle">开票银行</td>
													<td width="17%">
														<div class="col-md-11">
															<input class="form-control" type="text" id="invoiceBank"
																name="invoiceBank" th:value="${contract.invoiceBank}" />
														</div>
														<div class="col-md-1">
															<span style="color: #F00"></span>
														</div>
													</td>
													<td width="8%" align="center"
														style="vertical-align: middle">银行账号</td>
													<td width="17%">
														<div class="col-md-11">
															<input class="form-control" type="text" id="bankAccount"
																name="bankAccount" th:value="${contract.bankAccount}" />
														</div>
														<div class="col-md-1">
															<span style="color: #F00"></span>
														</div>
													</td>
													<td width="8%" align="center"
														style="vertical-align: middle">税 号</td>
													<td width="17%">
														<div class="col-md-11">
															<input class="form-control" type="text" id="taxNumber"
																name="taxNumber" th:value="${contract.taxNumber}" />
														</div>
														<div class="col-md-1">
															<span style="color: #F00"></span>
														</div>
													</td>
												</tr>
												<tr class="odd gradeX">
													<td width="8%" align="center"
														style="vertical-align: middle">订货地址</td>
													<td colspan="3">
														<div class="col-md-11">
															<input class="form-control" type="text" id="orderAddress"
																name="orderAddress" th:value="${contract.orderAddress}" />
														</div>
														<div class="col-md-1">
															<span style="color: #F00"></span>
														</div>
													</td>
													<td width="8%" align="center"
														style="vertical-align: middle">开票地址</td>
													<td width="17%">
														<div class="col-md-11">
															<input class="form-control" type="text"
																id="invoiceAddress" name="invoiceAddress"
																th:value="${contract.invoiceAddress}" />
														</div>
														<div class="col-md-1">
															<span style="color: #F00"></span>
														</div>
													</td>
												</tr>
											</tbody>
										</table>

										<div>
											<h4>
												<strong>邮寄单位信息</strong>
											</h4>
										</div>
										<table class="table table-bordered">
											<tbody>
												<tr class="odd gradeX">
													<td width="8%" align="center"
														style="vertical-align: middle">邮寄单位</td>
													<td width="17%">
														<div class="col-md-11">
															<input class="form-control" type="text" id="postUnit"
																name="postUnit" th:value="${contract.postUnit}" />
														</div>
														<div class="col-md-1">
															<span style="color: #F00"></span>
														</div>
													</td>
													<td width="8%" align="center"
														style="vertical-align: middle">邮寄代表</td>
													<td width="17%">
														<div class="col-md-11">
															<input class="form-control" type="text" id="postDelegate"
																name="postDelegate" th:value="${contract.postDelegate}" />
														</div>
														<div class="col-md-1">
															<span style="color: #F00"></span>
														</div>
													</td>
													<td width="8%" align="center"
														style="vertical-align: middle">邮寄电话</td>
													<td width="17%">
														<div class="col-md-11">
															<input class="form-control" type="text" id="postPhone"
																name="postPhone" th:value="${contract.postPhone}" />
														</div>
														<div class="col-md-1">
															<span style="color: #F00"></span>
														</div>
													</td>
												</tr>
												<tr class="odd gradeX">
													<td width="8%" align="center"
														style="vertical-align: middle">邮寄地址</td>
													<td colspan="3">
														<div class="col-md-11">
															<input class="form-control" type="text" id="postAddress"
																name="postAddress" th:value="${contract.postAddress}" />
														</div>
														<div class="col-md-1">
															<span style="color: #F00"></span>
														</div>
													</td>
													<td width="8%" align="center"
														style="vertical-align: middle">邮寄邮编</td>
													<td width="17%">
														<div class="col-md-11">
															<input class="form-control" type="text" id="postZip"
																name="postZip" th:value="${contract.postZip}"
																onkeyup="clearNoInteger(this)" dataType="p" />
														</div>
														<div class="col-md-1">
															<span style="color: #F00"></span>
														</div>
													</td>
												</tr>
											</tbody>
										</table>

										<div class="form-inline">
											<div class="form-group">
												<h4>
													<strong>占比划分</strong>
												</h4>
											</div>
											<div class="btn-group pull-right">
												<button type="button" class="btn btn-info addScaleBtn">添加</button>
												<button type="button" class="btn btn-info editScaleBtn">编辑</button>
												<button type="button" style="margin-right: 10px;"
													class="btn btn-info delScaleBtn">删除</button>
											</div>
										</div>
										<table width="100%"
											class="mytable dataTable table-bordered text-center table-striped table-hover"
											align="center" id="resultScaleTable">
											<thead>
												<tr>
													<th class="center" width="6%">序号</th>
													<th class="center" width="5%"><input type="checkbox"
														id="checkAllScale" /></th>
													<th class="center" width="15%">负责人</th>
													<th class="center" width="15%">所属片区</th>
													<th class="center" width="20%">占比划分(元)</th>
													<th class="center" width="15%">百分比</th>
													<th class="center" width="24%">备注</th>
												</tr>
											</thead>
											<tbody>
											</tbody>
										</table>

										<div>
											<h4>
												<strong>合同分类明细</strong>
											</h4>
										</div>
										<table class="table table-bordered">
											<tbody>
												<tr class="odd gradeX">
													<td width="8%" align="center"
														style="vertical-align: middle">责任区域</td>
													<td width="17%">
														<div class="col-md-11">
															<select class="form-control" id="dutyArea"
																name="dutyArea" style="width:100%">
																<option></option>
																<!-- <option th:each="dutyArea:${dutyAreas}"
																	th:text="${dutyArea.title}"
																	th:selected="${dutyArea.title.equals(contract.dutyArea)}"></option> -->
																	<option th:each="orderArea:${orderAreas}"
																	th:text="${orderArea}"
																	th:selected="${orderArea.equals(contract.orderArea)}"></option>
															</select>
														</div>
<!-- 														<div class="col-md-1"> -->
<!-- 															<span style="color: #F00">*</span> -->
<!-- 														</div> -->
													</td>
													<td width="8%" align="center"
														style="vertical-align: middle">责任人</td>
													<td width="17%">
														<div class="col-md-11">
															<select class="form-control" id="dutyOfficer"
																name="dutyOfficer"  style="width: 100%">
																<option></option>
																<option th:each="user:${allSuperiorMen}"
																	th:text="${user.empLogin.name}"
																	th:selected="${user.empLogin.name.equals(contract.dutyOfficer)}"></option>
															</select>
														</div>
<!-- 														<div class="col-md-1"> -->
<!-- 															<span style="color: #F00">*</span> -->
<!-- 														</div> -->
													</td>
													<td width="8%" align="center"
														style="vertical-align: middle">南北片区</td>
													<td width="17%">
														<div class="col-md-11">
															<select class="form-control" id="southNorthArea"
																name="southNorthArea" >
																<option></option>
																<option th:each="southNorthArea:${southNorthAreas}"
																	th:text="${southNorthArea.title}"
																	th:selected="${southNorthArea.title.equals(contract.southNorthArea)}"></option>
															</select>
														</div>
<!-- 														<div class="col-md-1"> -->
<!-- 															<span style="color: #F00">*</span> -->
<!-- 														</div> -->
													</td>
												</tr>
												<tr class="odd gradeX">
													<td width="8%" align="center"
														style="vertical-align: middle">所属板块</td>
													<td width="17%">
														<div class="col-md-11">
															<input class="form-control" id="belongArea"
																name="belongArea" th:value="${contract.belongArea}"
																
																readonly="readonly" />
														</div>
<!-- 														<div class="col-md-1"> -->
<!-- 															<span style="color: #F00">*</span> -->
<!-- 														</div> -->
													</td>
													<td width="8%" align="center"
														style="vertical-align: middle">考核分类</td>
													<td width="17%">
														<div class="col-md-11">
															<select class="form-control" id="checkKind"
																name="checkKind" >
																<option></option>
																<option th:each="checkKind:${checkKinds}"
																	th:text="${checkKind.title}"
																	th:selected="${checkKind.title.equals(contract.checkKind)}">
																</option>
															</select>
														</div>
<!-- 														<div class="col-md-1"> -->
<!-- 															<span style="color: #F00">*</span> -->
<!-- 														</div> -->
													</td>
													<td width="8%" align="center"
														style="vertical-align: middle">产品分类</td>
													<td width="17%">
														<div class="col-md-11">
															<select class="form-control" id="productKind"
																name="productKind" >
																<option></option>
																<option th:each="productKind:${productKinds}"
																	th:text="${productKind.title}"
																	th:selected="${productKind.title.equals(contract.productKind)}">
																</option>
															</select>
														</div>
<!-- 														<div class="col-md-1"> -->
<!-- 															<span style="color: #F00">*</span> -->
<!-- 														</div> -->
													</td>
												</tr>
												<tr class="odd gradeX">
													<td width="8%" align="center"
														style="vertical-align: middle">合同签订人</td>
													<td width="17%">
														<div class="col-md-11">
															<select class="form-control" id="signOfficer"
																name="signOfficer"  style="width: 100%">
																<option></option>
																<option th:each="user:${allSuperiorMen}"
																	th:text="${user.empLogin.name}"
																	th:selected="${user.empLogin.name.equals(contract.signOfficer)}"></option>
															</select>
														</div>
<!-- 														<div class="col-md-1"> -->
<!-- 															<span style="color: #F00">*</span> -->
<!-- 														</div> -->
													</td>
													<td width="8%" align="center"
														style="vertical-align: middle">维修协议人</td>
													<td width="17%">
														<div class="col-md-11">
															<select class="form-control" id="repairOfficer"
																name="repairOfficer" style="width: 100%">
																<option></option>
																<option th:each="user:${allSuperiorMen}"
																	th:text="${user.empLogin.name}"
																	th:selected="${user.empLogin.name.equals(contract.repairOfficer)}"></option>
															</select>
														</div>
<!-- 														<div class="col-md-1"> -->
<!-- 															<span style="color: #F00">*</span> -->
<!-- 														</div> -->
													</td>
													<td width="8%" align="center"
														style="vertical-align: middle">报价人</td>
													<td width="17%">
														<div class="col-md-11">
															<select class="form-control" id="quotationOfficer"
																name="quotationOfficer" style="width: 100%">
																<option></option>
																<option th:each="user:${allSuperiorMen}"
																	th:text="${user.empLogin.name}"
																	th:selected="${user.empLogin.name.equals(contract.quotationOfficer)}"></option>
															</select>
														</div>
<!-- 														<div class="col-md-1"> -->
<!-- 															<span style="color: #F00">*</span> -->
<!-- 														</div> -->
													</td>
												</tr>
												<tr class="odd gradeX">
													<td width="8%" align="center"
														style="vertical-align: middle">经办部门</td>
													<td width="17%">
														<div class="col-md-11">
															<input class="form-control" type="text" readonly="readonly"
																id="operatDepartment" name="operatDepartment"
																th:value="${contract.operatDepartment}"
																 />
														</div>
<!-- 														<div class="col-md-1"> -->
<!-- 															<span style="color: #F00">*</span> -->
<!-- 														</div> -->
													</td>
													<td width="8%" align="center"
														style="vertical-align: middle">经办人</td>
													<td width="17%">
														<div class="col-md-11">
															<input class="form-control" type="text" id="operator"
																name="operator" th:value="${contract.operator}" readonly="readonly"
																/>
														</div>
<!-- 														<div class="col-md-1"> -->
<!-- 															<span style="color: #F00">*</span> -->
<!-- 														</div> -->
													</td>
													<td width="8%" align="center"
														style="vertical-align: middle">经办日期</td>
													<td width="17%">
														<div class="col-md-11">
															<input class="form-control" type="date" id="operatDate"
																name="operatDate"
																th:value="${#dates.format(contract.operatDate,'yyyy-MM-dd')}"
																/>
														</div>
<!-- 														<div class="col-md-1"> -->
<!-- 															<span style="color: #F00">*</span> -->
<!-- 														</div> -->
													</td>
												</tr>
												<tr class="odd gradeX">
													<td align="center" style="vertical-align: middle">备注</td>
													<td colspan="7">
														<div class="col-md-11">
															<textarea class="form-control" style="width: 100%"
																id="memo" name="memo" th:text="${contract.memo}"
																rows="3"></textarea>
														</div>
														<div class="col-md-1">
															<span style="color: #F00"></span>
														</div>
													</td>
												</tr>
											</tbody>
										</table>
									</form>
									<div
										th:replace="audit/audit-levels::hasFiles('has','hasbutton')"></div>



								</div>

								<div id="tab2" class="tab-pane">
									<div class="box-body">
										<div class="form-inline">
											<div class="form-group">
												<h4>
													<strong>泵</strong>
												</h4>
											</div>
											<div class="btn-group pull-right">
												<button type="button" class="btn btn-info importPumpList">导入主机报价清单</button>
												<button type="button" class="btn btn-info addPumpBtn">新增</button>
												<button type="button" class="btn btn-info editPumpBtn">编辑</button>
												<button type="button" class="btn btn-info delPumpBtn">删除</button>
											</div>
										</div>
									</div>
									<div class="box box-body"
										style="width: 100%; overflow-x: scroll;">
										<table
											class="mytable dataTable table-bordered text-center table-striped table-hover"
											cellspacing="0" width="3000px" align="center"
											id="resultPumpTable">
											<thead>
												<tr>
													<th width="4%">序号</th>
													<th width="2%"><input type="checkbox"
														id="checkAllPump" /></th>
													<th width="8%">产品名称</th>
													<th width="6%">产品类型</th>
													<th width="6%">细分类型</th>
													<th width="7%">产品型号</th>
													<th width="5%">数量</th>
													<th width="5%">单价(元)</th>
													<th width="5%">功率(kw)</th>
													<th width="5%">过流材质</th>
													<th width="5%">传输介质</th>
													<th width="5%">粘度(Cp)</th>
													<th width="5%">流量(m3/h)</th>
													<th width="5%">扬程(m)</th>
													<th width="5%">温度(℃)</th>
													<th width="5%">比重(kg/m3)</th>
													<th width="5%">入口压力(MPa)</th>
													<th width="6%">有效气蚀余量(N[PSHa)(m)</th>
													<th width="6%">必须气蚀余量(N[PSHr)(m)</th>
												</tr>
											</thead>
											<tbody>
											</tbody>
										</table>
									</div>

									<div class="box-body">
										<div class="form-inline">
											<div class="form-group">
												<h4>
													<strong>其他</strong>
												</h4>
											</div>
											<div class="btn-group pull-right">
												<button type="button" class="btn btn-info importOtherList">导入其他报价清单</button>
												<button type="button" class="btn btn-info addOtherBtn">新增</button>
												<button type="button" class="btn btn-info editOtherBtn">编辑</button>
												<button type="button" class="btn btn-info delOtherBtn">删除</button>
											</div>
										</div>
									</div>
									<table id="resultOtherTable"
										class="mytable dataTable table-bordered text-center table-striped table-hover"
										cellspacing="0" width="100%" align="center">
										<thead>
											<tr>
												<th class="center" width="6%">序号</th>
												<th class="center" width="6%"><input type="checkbox"
													id="checkAllOther" /></th>
												<th class="center" width="20%">配件名称</th>
												<th class="center" width="20%">规格型号</th>
												<th class="center" width="10%">材料</th>
												<th class="center" width="8%">单位</th>
												<th class="center" width="10%">数量</th>
												<th class="center" width="20%">折扣价(元)</th>
											</tr>
										</thead>
										<tbody>
										</tbody>
									</table>

									<div>
										<a type="button" class="btn btn-default pull-right"
											href="javascript:history.go(-1)">返回</a>
										<button type="button"
											class="btn btn-primary pull-right saveContractBtn">保存</button>
									</div>

								</div>


							</div>
						</div>


					</div>
				</div>
			</div>
		</section>

		<!--占比分配弹窗-->
		<div class="modal" id="divideScaleModal">
			<div class="modal-dialog" role="dialog">
				<div class="modal-content">
					<form id="divideScaleAtrrForm">
						<input class="form-control" type="hidden" id="divideScaleId"
							name="divideScaleId" />
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal"
								aria-label="Close">
								<span aria-hidden="true">&times;</span>
							</button>
							<h4 class="modal-title">
								<strong>占比分配</strong>
							</h4>
						</div>
						<div class="modal-body">
							<div class="form-horizontal">
								<div class="form-group">
									<label class="col-sm-2 control-label">负责人</label>
									<div class="col-sm-4">
										<div class="col-md-11">
											<select class="form-control" id="functionary"
												name="functionary" datatype="*,*1-100,t" nullmsg="请选择占比负责人"
												style="width: 100%">
												<option></option>
												<option th:each="user:${allSuperiorMen}"
													th:text="${user.empLogin.name}"></option>
											</select>
										</div>
										<div class="col-md-1">
											<span style="color: #F00; fontsize: 30px">*</span>
										</div>
									</div>
									<label class="col-sm-2 control-label">所属板块</label>
									<div class="col-sm-4">
										<div class="col-md-11">
											<select class="form-control" id="divideScaleBelongArea"
												name="divideScaleBelongArea" datatype="*,*1-100,t"
												nullmsg="请选择所属板块">
												<option th:each="area:${areas}" th:text="${area}"></option>
											</select>
										</div>
										<div class="col-md-1">
											<span style="color: #F00; fontsize: 30px">*</span>
										</div>
									</div>
								</div>
							<div class="form-group">
				              <label class="col-sm-2 control-label">占比划分(元)</label>
				                <div class="col-sm-4">
				                  <div class="col-md-11">
				                  	<input class="form-control" type="hidden" id="oldScaleDivide" name="oldScaleDivide" />
				                    <input class="form-control"  type="text" id="scaleDivide" name="scaleDivide" onkeyup="clearNoNum(this)" datatype="*,n" nullmsg="输入百分比后自动显示"/>
				                  </div>
				                  <div class="col-md-1">
				                     <span style="color:#F00;fontsize:30px"></span>
				                  </div>
				                </div>
				              <label class="col-sm-2 control-label">百分比(%)</label>
				                <div class="col-sm-4">
				                  <div class="col-md-11">
				                    <input class="form-control"  type="text" id="percent" name="percent" onkeyup="clearNoNum(this)" datatype="*,n" nullmsg="请输入占比划分百分比"/>
				                  </div>
				                  <div class="col-md-1">
				                     <span style="color:#F00;fontsize:30px">*</span>
				                  </div>
				                </div>
				           </div>
								<div class="form-group">
									<label class="col-sm-2 control-label">备注</label>
									<div class="col-sm-10">
										<div class="col-md-11">
											<textarea class="form-control" type="text"
												name="divideScaleMemo" id="divideScaleMemo"></textarea>
										</div>
									</div>
								</div>
							</div>
						</div>
						<div class="modal-footer">
							<button type="button" class="btn btn-primary saveScaleBtn">确定</button>
							<button type="button" class="btn btn-default"
								data-dismiss="modal">返回</button>
						</div>
					</form>
				</div>
			</div>
		</div>

		<!--新增/编辑泵弹窗-->
		<div class="modal" id="mainDeviceModal">
			<div class="modal-dialog" role="dialog" style="width: 80%">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"
							aria-label="Close">
							<span aria-hidden="true">&times;</span>
						</button>
						<h4 class="modal-title">
							<strong>泵信息</strong>
						</h4>
					</div>
					<div style="height: 350px; overflow-x: hidden; overflow-y: auto;">
						<div class="modal-body">
							<div class="form-inline">
								<form id="mainDeviceForm">
									<input type="hidden" id="mainDeviceId" name="mainDeviceId" />
									<input type="hidden" id="maincreateTime" name="maincreateTime" />
									<div class="widget-content nopadding">
										<table class="table table-bordered">
											<tbody>
												<tr class="odd gradeX">
													<td width="8%" class="center">产品名称</td>
													<td width="16%">
														<div class="col-md-11">
															<input class="form-control" type="text" id="productName"
																name="productName" datatype="*,*1-100,t"
																nullmsg="请输入产品名称" />
														</div>
														<div class="col-md-1">
															<span style="color: #F00">*</span>
														</div>
													</td>
													<td width="8%" class="center">产品类型</td>
													<td width="16%">
														<div class="col-md-11">
															<select class="form-control" id="productType"
																name="productType" datatype="*,*1-100,t"
																nullmsg="请选择产品类型">
																<option th:each="productType:${productTypes}"
																	th:text="${productType.title}"
																	th:value="${productType.title}"></option>
															</select>
														</div>
														<div class="col-md-1">
															<span style="color: #F00">*</span>
														</div>
													</td>
													<td width="8%" class="center">细分类型</td>
													<td width="16%">
														<div class="col-md-11">
															<select class="form-control" id="subDivideType"
																name="subDivideType">
															</select>
														</div>
														<div class="col-md-1">
															<span style="color: #F00"></span>
														</div>
													</td>
												</tr>
												<tr class="odd gradeX">
													<td width="8%" class="center">产品型号</td>
													<td width="16%"><div class="col-md-11">
															<input type="text" id="productModel" name="productModel"
																class="form-control" />
														</div></td>
													<td width="8%" class="center">功率(kw)</td>
													<td width="16%"><div class="col-md-11">
															<input type="text" id="power" name="power"
																class="form-control" />
														</div></td>
													<td width="8%" class="center">数量</td>
													<td width="16%">
														<div class="col-md-11">
															<input class="form-control" type="text" id="number"
																name="number" onkeyup="clearNoInteger(this)"
																datatype="*,d" nullmsg="请输入数量" errormsg="请输入整数" />
														</div>
														<div class="col-md-1">
															<span style="color: #F00">*</span>
														</div>
													</td>
												</tr>
												<tr class="even gradeC">
													<td width="8%" class="center">单价(元)</td>
													<td width="16%">
														<div class="col-md-11">
															<input type="text" id="unitPrice" name="unitPrice"
																class="form-control" onkeyup="clearNoNum(this)"
																datatype="*,n" nullmsg="请输入单价" />
														</div>
														<div class="col-md-1">
															<span style="color: #F00">*</span>
														</div>
													</td>
													<td width="8%" class="center">过流材质</td>
													<td width="16%">
														<div class="col-md-11">
															<input class="form-control" type="text" id="flowMaterial"
																name="flowMaterial" />
														</div>
													</td>
													<td width="8%" class="center">传输介质</td>
													<td width="16%">
														<div class="col-md-11">
															<input type="text" id="transMedia" name="transMedia"
																class="form-control" />
														</div>
													</td>
												</tr>
												<tr class="even gradeC">
													<td width="8%" class="center">比重</td>
													<td width="16%">
														<div class="col-md-11">
															<input class="form-control" type="text" id="proportion"
																name="proportion" />
														</div>
													</td>
													<td width="8%" class="center">有效气蚀余量</td>
													<td width="16%">
														<div class="col-md-11">
															<input class="form-control" type="text" id="NPSHA"
																name="NPSHA" />
														</div>
													</td>
													<td width="8%" class="center">流量</td>
													<td width="16%">
														<div class="col-md-11">
															<input type="text" id="flux" name="flux"
																class="form-control" />
														</div>
													</td>
												</tr>
												<tr class="even gradeC">
													<td width="8%" class="center">温度(℃)</td>
													<td width="16%">
														<div class="col-md-11">
															<input class="form-control" type="text" id="temperature"
																name="temperature" />
														</div>
													</td>
													<td width="8%" class="center">必须气蚀余量</td>
													<td width="16%">
														<div class="col-md-11">
															<input class="form-control" type="text" id="MPSHA"
																name="MPSHA" />
														</div>
													</td>
													<td width="8%" class="center">扬程</td>
													<td width="16%">
														<div class="col-md-11">
															<input type="text" id="pumpLift" name="pumpLift"
																class="form-control" />
														</div>
													</td>
												</tr>
												<tr class="even gradeC">
													<td width="8%" class="center">粘度</td>
													<td width="16%">
														<div class="col-md-11">
															<input type="text" id="viscosity" name="viscosity"
																class="form-control" />
														</div>
													</td>
													<td width="8%" class="center">入口压力</td>
													<td width="16%">
														<div class="col-md-11">
															<input class="form-control" type="text" id="inPressure"
																name="inPressure" />
														</div>
													</td>
													<td width="8%" class="center">交货日期</td>
													<td width="16%" rowspan="1" colspan="1">
														<div class="col-md-11">
															<input class="form-control" type="date" id="dDeliveryDate" name="dDeliveryDate" style=" width: 175px" datatype="*,*1-100,t" nullmsg="请输入交货日期"/>
														</div>
														<div class="col-md-1">
															<span style="color: #F00">*</span>
														</div>
													</td>
												</tr>
												<tr  class="even gradeC">
													<td colspan="2">
														<button type="button"
															class="btn btn-info pull-right savePumpBtn">保存</button>
													</td>
												</tr>
											</tbody>
										</table>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>

		<!--新建/编辑其他弹窗-->
		<div class="modal" id="editReplacementModal">
			<div class="modal-dialog" role="dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"
							aria-label="Close">
							<span aria-hidden="true">&times;</span>
						</button>
						<h4 class="modal-title">
							<strong>配件信息</strong>
						</h4>
					</div>
					<div class="modal-body">
						<form id="editOneReplacementAtrrForm">
							<input type="hidden" name="replacementId" id="replacementId" />
							<input type="hidden" id="replacementcreateTime"
								name="replacementcreateTime" />
							<table class="table table-bordered">
								<tbody>
									<tr class="odd gradeX">
										<td width="15%" align="center" style="vertical-align: middle">配件名称</td>
										<td width="35%">
											<div class="col-md-11">
												<input class="form-control" type="text" id="deviceName"
													name="deviceName" datatype="*,*1-100,t" nullmsg="请输入备件名称" />
											</div>
											<div class="col-md-1">
												<span style="color: #F00">*</span>
											</div>
										</td>
										<td width="15%" align="center" style="vertical-align: middle">规格型号</td>
										<td width="35%">
											<div class="col-md-11">
												<input class="form-control" type="text" id="type"
													name="type" datatype="*,*1-100,t" nullmsg="请输入规格型号" />
											</div>
											<div class="col-md-1">
												<span style="color: #F00">*</span>
											</div>
										</td>
									</tr>
									<tr class="odd gradeX">
										<td width="15%" align="center" style="vertical-align: middle">材
											料</td>
										<td width="35%">
											<div class="col-md-11">
												<input class="form-control" type="text" id="material"
													name="material" datatype="*,*1-100,t" nullmsg="请输入材料" />
											</div>
											<div class="col-md-1">
												<span style="color: #F00">*</span>
											</div>
										</td>
										<td width="15%" align="center" style="vertical-align: middle">单
											位</td>
										<td width="35%">
											<div class="col-md-11">
												<select class="form-control" id="unit" name="unit"
													datatype="*,*1-100,t" nullmsg="请选择单位">
													<option>台</option>
													<option>个</option>
													<option>根</option>
													<option>片</option>
													<option>件</option>
													<option>套</option>
													<option>付</option>
												</select>
											</div>
											<div class="col-md-1">
												<span style="color: #F00">*</span>
											</div>
										</td>
									</tr>
									<tr class="odd gradeX">
										<td width="15%" align="center" style="vertical-align: middle">数
											量</td>
										<td width="35%">
											<div class="col-md-11">
												<input class="form-control" type="text" id="amount"
													name="amount" onkeyup="clearNoNum(this)" datatype="*,d"
													nullmsg="请输入数量" errormsg="请输入整数" />
											</div>
											<div class="col-md-1">
												<span style="color: #F00">*</span>
											</div>
										</td>
										<td width="15%" align="center" style="vertical-align: middle">折扣价(元)</td>
										<td width="35%">
											<div class="col-md-11">
												<input class="form-control" type="text" id="price"
													name="price" onkeyup="clearNoNum(this)" datatype="*,n"
													nullmsg="请输入折扣价" />
											</div>
											<div class="col-md-1">
												<span style="color: #F00">*</span>
											</div>
										</td>
									</tr>
								</tbody>
							</table>
						</form>
						<div class="modal-footer">
							<button type="button" class="btn btn-primary saveOtherBtn">保存</button>
							<button type="button" class="btn btn-default"
								data-dismiss="modal">返回</button>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!--引入用户信息弹窗-->
		<div class="modal" id="modal-find-auditor">
			<div class="modal-dialog" role="dialog" style="width: 60%">
				<form id="form-find-user">
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal"
								aria-label="Close">
								<span aria-hidden="true">&times;</span>
							</button>
							<h4 class="modal-title">
								<strong>用户查找</strong>
							</h4>
						</div>
						<div class="modal-body">
							<div class="form-horizontal">
								<div class="box-body">
									<div class="form-inline">
										<div class="input-group">
											<input type="text" class="form-control" id="search"
												placeholder="Search..." /> <span class="input-group-btn">
												<button type="button" id="btn-search"
													class="btn btn-info app-btn-search">查询</button>
												<button type="button" id="btn-reset"
													class="btn btn-info app-btn-reset">撤消</button>
											</span>
										</div>
									</div>
								</div>
								<div class="box box-body">
									<table id="table-user"
										class="mytable dataTable table-bordered text-center table-striped table-hover"
										cellspacing="0" width="100%" align="center">
										<thead>
											<tr>
												<th width="10%">序号</th>
												<th width="20%">姓名</th>
												<th width="20%">性别</th>
												<th width="20%">职务</th>
												<th width="20%">销售区域</th>
												<th width="10%">选择</th>
											</tr>
										</thead>
										<tbody>

										</tbody>
									</table>
								</div>
							</div>
						</div>
						<div class="modal-footer">
							<button type="button" class="btn btn-info" id="btn-reference">引入</button>
							<button type="button"
								class="btn btn-default app-find-user-return"
								data-dismiss="modal">返回</button>
						</div>
					</div>
				</form>
			</div>
		</div>
		<!--引入用户信息弹窗结束-->
		
		<!--引入客户开票信息弹窗-->
		<div class="modal" id="modal-find-CustomerPayInfo">
			<div class="modal-dialog" role="dialog" style="width: 60%">
				<form id="form-find-CustomerPay">
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal"
									aria-label="Close">
								<span aria-hidden="true">&times;</span>
							</button>
							<h4 class="modal-title">
								<strong>开票信息查找</strong>
							</h4>
						</div>
						<div class="modal-body">
							<div class="form-horizontal">
								<!-- <div class="box-body">
									<div class="form-inline">
										<div class="input-group">
											<input type="text" class="form-control" id="search1"
												   placeholder="Search..." /> <span class="input-group-btn">
													<button type="button" id="btn-search1"
															class="btn btn-info app-btn-search">查询</button>
													<button type="button" id="btn-reset1"
															class="btn btn-info app-btn-reset">撤消</button>
												</span>
										</div>
									</div>
								</div> -->
								<div class="box box-body">
									<table id="table-CustomerPay"
										   class="mytable dataTable table-bordered text-center table-striped table-hover"
										   cellspacing="0" width="100%" align="center">
										<thead>
											<tr>
												<th width="6%">序号</th>
											<th width="5%">操作</th>
											<th width="8%">客户编号</th>
											<th width="8%">联系电话</th>
											<th width="8%">邮编</th>
											<th width="8%">开票地址</th>
											<th width="8%">开票银行</th>
											<th width="8%">税号</th>
											<th width="8%">银行账号</th>
											<th width="8%">邮寄单位</th>
                                            <th width="8%">邮寄代表</th>
                                            <th width="8%">邮寄电话</th>
                                            <th width="8%">邮寄邮编</th>
                                            <th width="8%">邮寄地址</th>
											</tr>
										</thead>
										<tbody>
										</tbody>
									</table>
								</div>
							</div>
						</div>
						<div class="modal-footer">
							<button type="button" class="btn btn-info" id="btn-reference1">引入</button>
							<button type="button"
									class="btn btn-default app-find-user-return"
									data-dismiss="modal">返回</button>
						</div>
					</div>
				</form>
			</div>
		</div>
		<!--引入客户开票信息弹窗结束-->

		<script th:src="@{/contract/contractindex.js}"></script>
		<script th:src="@{/contract/contract-scale-divide.js}"></script>
		<script th:src="@{/contract/contract-pump.js}"></script>
		<script th:src="@{/contract/contract-other.js}"></script>

		<script th:inline="javascript">
			/*<![CDATA[*/

			var contractId = /*[[${contractId}]]*/' ';
			var contractCode = /*[[${contractCode}]]*/' ';
			var contractType = /*[[${contractType}]]*/' ';

			/*]]>*/
		</script>
		<script th:src="@{/contract/contract-audit-submit.js}"></script>
	</div>


</body>
</html>